<template>
  <div class="home">
      <router-view v-slot="{ Component }">
        <component :is="Component" />
      </router-view>
  </div>
</template>

<script setup lang="ts">
import { onBeforeMount } from '@vue/runtime-core';
import { useMessage } from 'naive-ui';

onBeforeMount(() => {
  window.$message = useMessage();
});
</script>

<style scoped>
.home {
  background-color: #e7e6e6;
  min-height: 100vh;
}
</style>
